package TrafficControlSystem.Common;

public class RoadPoint
{

	private RoadPoint left, right, top, bottom;
	private int posx, posy;
	private boolean isCrossing;
	public RoadPoint()
	{
		this.posx = 0;
		this.posy = 0;
		this.isCrossing = false;

		left = null;
		right = null;
		top = null;
		bottom = null;		
	}
	
	public RoadPoint(int posx, int posy)
	{

		this.posx = posx;
		this.posy = posy;
		this.isCrossing = false;

		left = null;
		right = null;
		top = null;
		bottom = null;
	}

	public int getPosx()
	{
		return posx;
	}

	public void setPosx(int posx)
	{
		this.posx = posx;
	}

	public int getPosy()
	{
		return posy;
	}

	public void setPosy(int posy)
	{
		this.posy = posy;
	}

	public boolean isCrossing()
	{
		return isCrossing;
	}

	public void setCrossing(boolean isCrossing)
	{
		this.isCrossing = isCrossing;
	}

	public RoadPoint getLeft()
	{
		return left;
	}

	public void setLeft(RoadPoint left)
	{
		this.left = left;
	}

	public RoadPoint getRight()
	{
		return right;
	}

	public void setRight(RoadPoint right)
	{
		this.right = right;
	}

	public RoadPoint getTop()
	{
		return top;
	}

	public void setTop(RoadPoint top)
	{
		this.top = top;
	}

	public RoadPoint getBottom()
	{
		return bottom;
	}

	public void setBottom(RoadPoint bottom)
	{
		this.bottom = bottom;
	}

}
